#include "test.h"
#include "httpserver.h"

int func(const QStringList& type, const QByteArray& req, QByteArray& ans)
{
	//std::cout << QString(req).toStdString() << std::endl;
	return 0;
}


Test::Test(QWidget *parent)
	: QWidget(parent)
{
	ui.setupUi(this);
	m_wcs = new HttpServer(nullptr);
	m_wcs->RegisterServerFunc(func);
	m_wcs->StartSever("127.0.0.1", 8088);
}

Test::~Test()
{
}
